package com.itheima.service;

import com.itheima.entity.PageResult;
import com.itheima.entity.QueryPageBean;
import com.itheima.entity.Result;
import com.itheima.exception.OrderException;
import com.itheima.pojo.OrderInfo;
import com.itheima.pojo.OrderSettingList;

import java.util.Map;

/**
 * @author liam
 * @description
 * @date 2020/3/2-19:40
 * @Version 1.0.0
 */
public interface OrderService {

    Result submit(OrderInfo orderInfo) throws OrderException;

    Map findById(Integer id);

    void updatePayNo(String outTradeNo, Integer orderId);

    void updatePayStatus(String outTradeNo);

    Result addByPhone(OrderSettingList orderSettingList);

    PageResult findPage(QueryPageBean queryPageBean);
}
